Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: allow deactivating of scheduled tasks #316

Merged
merged 1 commit into from
Mar 2, 2025

Conversation

M-arcus
Copy link
Contributor

@M-arcus M-arcus commented Feb 28, 2025

This pull request introduces a new feature to deactivate scheduled tasks in the frosh-tools module. The changes include adding a new endpoint to the backend, updating the API service, and modifying the frontend to support this new functionality.

Backend changes:

API service changes:

Frontend changes:

Localization changes:

@shyim shyim requested a review from Copilot March 2, 2025 14:15

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This pull request introduces a feature to deactivate scheduled tasks in the frosh-tools module. It adds a new frontend method to trigger task deactivation, integrates an API call for deactivation, and patches the UI with appropriate notification messages.

Reviewed Changes

File Description
src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-scheduled/index.js Added the deactivateTask method to handle deactivation and update UI notifications.
src/Resources/app/administration/src/api/frosh-tools.js Introduced a new API method to call the backend deactivation endpoint.

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-scheduled/index.js:145

  • Consider checking if e.response is defined (for example, using optional chaining: e.response?.data) to avoid potential runtime errors when the error object does not include a response.
this.taskError = e.response.data;
@shyim shyim merged commit fcb6816 into FriendsOfShopware:main Mar 2, 2025
2 of 3 checks passed
@shyim
Copy link
Member

shyim commented Mar 2, 2025

thanks!

@M-arcus M-arcus deleted the set-to-inactive branch March 3, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants